package com.baizhi.xxn.service;

import com.baizhi.xxn.entity.Admin;

import java.io.IOException;
import java.util.Map;

public interface AdminService {
    //添加
    void register(Admin admin);
    //根据名字查询
    Map<String,String> login( Admin admin, String token);
    /*Admin queryName(String username);*/
    //验证码
    Map<String,String> getImageCodes() throws IOException;
    //获取登陆信息
    Admin getUserInfo(String token);
    //删除登陆信息
    void logout(String token);
}
